import * as actionTypes from './actionTypes';

const defaultState = {
	willPlan:{}
};

export default (state = defaultState, action) => {
	let newState;
	switch(action.type) {
		// 获取课程介绍数据
		case actionTypes.Acquire_Course_Will_Plan:
			newState = JSON.parse(JSON.stringify(state));
			newState.willPlan = action.data[0];
			// newState.banner_img = action.data.banner_img;
			// newState.course_description = action.data.course_description;
			// newState.course_List = action.data.course_List;
			// console.log(newState, action.data,'......')
			return newState;
		default:
			return state;
	}
}